home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / amigae.sept.archive / 000075_crash!msuvx2.m….edu!UMLANGSTON_Tue, 28 Sep 93 03:07:43 PST.msg < prev    next >
Text File  |  1993-11-02  |  2KB  |  52 lines

  1. Received: by bkhouse.cts.com (V1.16/Amiga)
  2.     id AA00000; Tue, 28 Sep 93 03:07:43 PST
  3. Received: from msuvx2.memst.edu by crash.cts.com with smtp
  4.     (Smail3.1.28.1 #18) id m0ohXNr-0000MNC; Mon, 27 Sep 93 22:13 PDT
  5. Received: from msuvx2.memst.edu by msuvx2.memst.edu (PMDF V4.2-14 #3869) id
  6.  <01H3GMZB1XT28Y51RN@msuvx2.memst.edu>; Tue, 28 Sep 1993 00:17:14 CST
  7. Date: Tue, 28 Sep 1993 00:17:14 -0600 (CST)
  8. Message-id: <01H3GMZB1XT48Y51RN@msuvx2.memst.edu>
  9. X-VMS-To: IN%"amigae@bkhouse.cts.com"
  10. MIME-version: 1.0
  11. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  12. Content-transfer-encoding: 7BIT
  13. From: UMLANGSTON@msuvx2.memst.edu
  14. To: amigae@bkhouse.cts.com
  15. Subject: Read-only gadget problems
  16.  
  17. Hi folks.
  18.   I'm elbow-deep in implementing the GUI for the holographic memory system
  19. I described earlier, and I've run into a wall.  I'm trying to use the
  20. read-only display gadgets available in 2.0 (TEXT_KIND, RKRM:Libs p.397) for
  21. the display of status messages and the like.
  22.   However, to display any text in these gadgets after initializing them, the
  23. OS requires that you use Gt_SetGadAttrsA(), and provide it with a pointer to:
  24.   the gadget (no problem)
  25.   the window its in (no prob)
  26.   NIL (no prob)
  27.   a taglist of the attributes to change (no prob...sorta)
  28.  
  29.   Everything's fine, except for the taglist.  Because TEXT_KIND requires a
  30. pointer to a string containing the text to display.  E doesn;t like someone
  31. declaring pointers to strings.  Well, I set up an OBJECT with an array of chars
  32. (right out of the E manual), and then set a pointer to this in a def statement.
  33. Set this var to contain the string, pop it in the Gt_Set...A() function,
  34. and.......nothing.
  35.  
  36.   Could someone post a short example of:
  37.      Setting up/creating an empty TEXT_KIND gadget,
  38.      then, successfully displaying a string in it using Gt_Set...A().
  39.  
  40. Much appreciated,
  41. mark
  42.  
  43. P.S. - Perhaps we should declare ourselves 'experts' in some certain aspect
  44.   of E or programming in general, so those with questions can get good 
  45.   answers, and those with knowledge can supply them.  I'll go first:
  46.   No expertise as such in E, but anyone needing any answers concerning
  47.   matrix manipulations, nonlinear systems, neural nets, artificial intelligence
  48.   artificial life, cognitive psychology, expert systems, prolog, lisp, 
  49.   parallel processing, etc. (these things may come in handy as general
  50.   algorithmic helps), I'm yer guy.
  51.  
  52. P.P.S. - I also do cutlefish.  ;)